<template>
    <div class="card-box">
        <v-dialog :show.sync="dialogVisible" @beforeClose="beforeClose" width="80%" title="查看使用单位">
            <div v-if="dialogVisible">
                <div class="card-box" v-loading="loading">
                    <div class="card-title">基本信息</div>
                    <el-form class="form-wrap" size="small" label-width="150px" ref="editForm" :model="editObj">
                        <el-form-item label="单位名称" prop="unitName">
                            <span>{{editObj.applyUnit.unitName}}</span>
                        </el-form-item>
                        <el-form-item label="单位类型" prop="unitType">
                            <!--                            <el-span> {{editObj.applyUnit.unitType}}</el-span>-->
                            <span> {{applyUnitType}}</span>

                        </el-form-item>
                        <el-form-item label="联系人姓名" prop="userName">
                             {{editObj.applyUnit.userName}}
                        </el-form-item>
                        <el-form-item label="联系电话" prop="tell">
                            <span> {{editObj.applyUnit.tell}}</span>
                        </el-form-item>
                        <el-form-item label="社会统一信用代码证" prop="creditNumber">
                            <span> {{editObj.applyUnit.creditNumber}}</span>
                        </el-form-item>
                        <el-form-item label="排序号" prop="sort">
                            <span> {{editObj.applyUnit.sort}}</span>
                        </el-form-item>
                        <el-form-item label="时间" prop="latestApplicationTime">
                            <span> {{editObj.applyUnit.latestApplicationTime}}</span>
                        </el-form-item>
                        <el-form-item label="物业" prop="applyProperty">
                            <span> {{editObj.applyUnit.applyProperty}}</span>
                        </el-form-item>

                        <el-form-item label="备注" class="full">
                            <span> {{editObj.applyUnit.remarks}}</span>
                        </el-form-item>
                        <el-form-item label="附件" class="col-two">
                            <p v-for="(fileObj) in editObj.fileList">
                                <el-link @click="downloadFile(fileObj.fileName,fileObj.original)" type="primary">
                                    {{fileObj.original}} - 下载
                                </el-link>
                                <br>
                            </p>

                        </el-form-item>

                    </el-form>
<!--                    <div class="card-title">编辑历史记录</div>-->
<!--                    <el-form class="form-wrap" size="small" label-width="150px">-->
<!--                        <div v-for="(user,i) in editObj.applyUnitLogList" class="full">-->
<!--                            <span style="font-size: 20px">{{user.operateBy}}</span>-->
<!--                            <br><br>-->
<!--                            <span style="font-size: 15px">{{user.content}}</span>-->
<!--                            <div style="text-align: right">-->
<!--                                <span style="font-size: 15px;right: 0px">{{user.operateTime}}</span>-->
<!--                            </div>-->
<!--                            <br><br>-->
<!--                        </div>-->
<!--                    </el-form>-->
                </div>

            </div>
            <div slot="foot">
                <el-button type="primary" size="small" @click="dialogVisible = false" style="width: 80px">关闭</el-button>
            </div>
        </v-dialog>
    </div>
</template>
<script src="./unit-detail.js"></script>
<!--<script src="./unit-add.js">-->
<!--</script>-->


<style scoped lang='scss'>
    

    @include formWrap();

</style>
